﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="hu.tortavar2.shared.Product" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:og="http://ogp.me/ns#"
      xmlns:fb="https://www.facebook.com/2008/fbml">

	<head>
	<meta name="keywords" content="sütemény, torta, keleti, pogácsa, apró sütemény, krémes, fagyalt, sós, édesség" />
	<meta name="description" content="Tortavár- Rendelésre készítünk alkalmi, esküvői és születésnapi tortákat, egyedi süteményeket, tradicionális süteményeket, édes-sós teasüteményeket." />
	
	<% Product product = (Product)request.getAttribute("product"); %>
	
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<% if (product != null) { %>
			<meta property="og:title" content="<%= product.getProductName() %>"/>
			<meta property="og:image" content="<%= product.getProductImageUrl() %>"/>
			<meta property="og:type" content="product"/>
			<meta property="og:url" content="<%=request.getAttribute("url")%>?t=<%= request.getParameterValues("t")[0] %>"/>
			<meta property="og:site_name" content="Tortavár cukrászda"/>
			<meta property="og:description" content="<%= product.getProductDescription() %>" />
		<% } else { %>
			<meta property="og:title" content="Tortavár cukrászda"/>
			<meta property="og:type" content="site"/>
			<meta property="og:url" content="request.getRequestURL()"/>
			<meta property="og:site_name" content="Tortavár cukrászda"/>
		
		<% } %>
	
		<link type="text/css" rel="stylesheet" href="Tortavar2.css">
		<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />

		<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,700' rel='stylesheet' type='text/css'>
    
		<title>${pageContext.request.contextPath}</title>

		<script type="text/javascript">

		  var _gaq = _gaq || [];
		  _gaq.push(['_setAccount', 'UA-30349583-1']);
		  _gaq.push(['_trackPageview']);

		  (function() {
			var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
			ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
			var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		  })();

		</script>
		
 
		<script type="text/javascript" language="javascript" src="tortavar2/tortavar2.nocache.js"></script>
 		
	</head>
	
	<body>
		<div id="fb-root"></div>
		<script>(function(d, s, id) {
		var js, fjs = d.getElementsByTagName(s)[0];
		if (d.getElementById(id)) return;
		js = d.createElement(s); js.id = id;
		js.src = "//connect.facebook.net/hu_HU/all.js#xfbml=1";
		fjs.parentNode.insertBefore(js, fjs);
		}(document, 'script', 'facebook-jssdk'));</script>
	
		<iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>
	
		<div id="header"></div>
		<div id="top">
			<div class="content">
				<div class="topleft"><a href="/"><img src="images/logo.png" /></a></div>
				<div id="menu" class="topright"></div>
			</div><!-- EOF content -->
		</div><!-- EOF top -->
		
		<div id="wrapper">
			<div class="content">
				<div>
				<% if (product != null) { %>
					<!-- 01 -->
					<div id="pdv" class="grid_01">
					<div class="ribbon-02 <%= product.getProductSpec() %>">új</div>
					<div class="prod-box-02">
						<div class="image-box">
							<img src="<%= product.getProductImageUrl() %>" class="prod-image" />
							<div style="padding: 5px"><%= product.getProductDescription() %></div>
						</div>
						<div class="text-box">
							<h4><%= product.getProductName() %></h4>
							<div ui:field="like" class="fb-like" data-href="<%=request.getAttribute("url")%>?t=<%= request.getParameterValues("t")[0] %>" data-send="false" data-layout="button_count" data-width="300" data-show-faces="false"></div>
							<ul class="list">
							<li>Ár: <span class="bluetext"><%= product.getProductPrice() %></span></li>
							<li>Kapható: <span class="bluetext"><%= product.getWhereToBuy() %></span></li>
							</ul>

							<% if (product.getProductDescX().size() > 0) { %>
								<h5>Részletek</h5>
								<ul class="list2">
								<% for(String elem : product.getProductDescX()){ %>
									<li><%= elem.toString() %></li>
								<% } %>
								</ul>
							<% } %>
							<a href="javascript:history.back()" class="button"><span>Vissza</span></a>
						</div>
					</div>
					</div>
					<!-- END 01 -->
				<% } %>
				</div><!-- EOF row -->
				<div class="clear"></div>
			</div><!-- EOF content -->
	</div><!-- EOF wrapper -->
	</body>








